﻿using banyuetan_2_0.IServices;
using banyuetan_2_0.Model.Models;
using banyuetan_2_0.Repository;
using banyuetan_2_0.Services.BASE;
using System.Threading.Tasks;

namespace banyuetan_2_0.Services
{
    public class CategoryService:BaseServices<Category>,ICategoryService
    {
        ICategoryRepository _dal;
        public CategoryService(ICategoryRepository categoryRepository)
        {
            this._dal = categoryRepository;
            base.BaseDal = categoryRepository;
            
        }

        public async Task<Category> GetByIdAsync(int id)
        {
            return await _dal.GetByIdAsync(id);
        }
    }
}
